#include <sfv/csr_matrix.h>
#include <sfv/components.h>
#include <sfv/print.h>
#include <sfv/layout/DensityGrid.h>
#include <sfv/layout/DrlLayout.h>
#include <sfv/io/snap_matrix.h>

#include <sfv/gallery/forestfire.h>

int main(void)
{
	sfv::csr_matrix<int,float> A;
	//sfv::gallery::forest_fire_game(A,100,0.8,0.8,80);
	sfv::io::read_matrix_market_file(A, "ca-GrQc.txt");

	sfv::array1d<int> membership;
	sfv::array1d<int> csize;
	size_t num;
	sfv::detect_clusters( A, membership, csize, &num );
	//sfv::print(membership);
	sfv::print(csize);
	std::cout << "Found " << num << " clusters." << std::endl;

	getchar();

    return 0;
}
